﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="UserInforList.aspx.cs" Inherits="FortuneHeaven.Admin.Pages.GameManager.UserInforList" %>
<%@ Register TagPrefix="uc1" TagName="Pagination" Src="~/Controls/Pagination.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function alertDelete() {
        if (confirm("是否确定要删除这些用户?")) {
            return true;
        }
        else {
            return false;
        }
    }
    function alertStop() {
        if (confirm("是否确定要停用这些用户?")) {
            return true;
        }
        else {
            return false;
        }
    }
    function alertStart() {
        if (confirm("是否确定要启用这些用户?")) {
            return true;
        }
        else {
            return false;
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <asp:Button runat="server" ID="btnAddItem" Text="批量启用" OnClick="StartUser"  OnClientClick="return alertStart();"/>
        <asp:Button runat="server" ID="btnDelete" Text="批量停权" OnClientClick="return alertStop();"
            OnClick="StopUser" />
        <asp:Button runat="server" ID="Button1" Text="批量删除" OnClientClick="return alertDelete();"
            OnClick="DeleteItem" />
    </div>
    
    <div id="head">
        <div class="left">
            <asp:Label ID="lblDeptName" runat="server" Font-Bold="true"></asp:Label>
            <asp:Label ID="lblStatistic" runat="server"></asp:Label>
        </div>
        <div class="right">
            <asp:Label ID="lbGiftOrder" runat="server" Text="帐号: "></asp:Label>
            <asp:TextBox ID="txtOrderID" runat="server"  CssClass="txt" style="width: 113px;" ></asp:TextBox>
            <asp:Label ID="Label1" runat="server" Text="推广员: "></asp:Label>
            <asp:TextBox ID="txtSpread" runat="server"  CssClass="txt" style="width: 113px;" ></asp:TextBox>
            <asp:Button  ID="btnSearch" runat="server" Text="查询" OnClick="SearchValue"/>
            <asp:Label ID="lblShow" runat="server" Text="显示:"></asp:Label>
            <asp:DropDownList ID="drpPagerSize" AutoPostBack="true" runat="server" OnSelectedIndexChanged="drpPagerSize_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <asp:ListView ID="lvNews" runat="server" EnableViewState="true" EnableModelValidation="True">
        <LayoutTemplate>
            <div id="list">
                <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <th class="sp">
                            &nbsp;
                        </th>
                           <th class="chk">
                            <input id="chkSelectAll" type="checkbox" onclick="SelectAll2();" />
                        </th>
                        <th>
                            帐号ID
                        </th>
                        <th>
                            帐号
                        </th>
                          <th>
                            状态
                        </th>
                        <th>
                            注册次数
                        </th>
                        <th>
                            注册时间
                        </th>
                        <th>
                            登陆游戏次数
                        </th>
                    </tr>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </tbody>
                </table>
            </div>
        </LayoutTemplate>
        <AlternatingItemTemplate>
            <tr>
                <td class="sp">
                    &nbsp;
                </td>
                 <td>
                    <asp:CheckBox ID="chkSelect" runat="server" />
                    <asp:HiddenField ID="hfIDs" runat="server" Value='<%# Eval("UserID")%>' />
                </td>
                <td>
                     <%# Eval("GameID")%>
                </td>
                <td>
                  <asp:LinkButton ID="lbOpenDetail" runat="server" OnClick="OpenDetail" Text='<%# Eval("Accounts")%>'
                        CommandArgument='<%# Eval("UserID")%>'></asp:LinkButton>
                </td>
                <td>
                 <%#  !(bool)Eval("Nullity") ? "正常" : "禁止"%>
                </td>
                <td>
                    <%# Eval("RegisterIP")%>
                </td>
                <td>
                    <%# Eval("RegisterDate")%>
                </td>
                <td>
                    <%# Eval("GameLogonTimes")%>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table id="Table2" runat="server">
                <tr>
                    <td>
                        没有记录.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr>
                 <td class="sp">
                    &nbsp;
                </td>
                 <td>
                    <asp:CheckBox ID="chkSelect" runat="server" />
                    <asp:HiddenField ID="hfIDs" runat="server" Value='<%# Eval("UserID")%>' />
                </td>
                <td>
                     <%# Eval("GameID")%>
                </td>
                <td>
                  <asp:LinkButton ID="lbOpenDetail" runat="server" OnClick="OpenDetail" Text='<%# Eval("Accounts")%>'
                        CommandArgument='<%# Eval("UserID")%>'></asp:LinkButton>
                </td>
                <td>
                      <%#  !(bool)Eval("Nullity") ? "正常" : "禁止"%>
                </td>
                <td>
                    <%# Eval("RegisterIP")%>
                </td>
                <td>
                    <%# Eval("RegisterDate")%>
                </td>
                <td>
                    <%# Eval("GameLogonTimes")%>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div id="foot">
        <div class="foot_left">
        </div>
        <div class="foot_right">
            <uc1:Pagination ID="usPager" runat="server" />
        </div>
    </div>
</asp:Content>